package com.itheima.mapper;

import com.itheima.pojo.Menu;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MenuMapper {
    List<Menu> getRootMenu();

    void addMenu(Menu menu);

    void del(@Param("id") Integer id);

    List<Menu> getByUsername(@Param("username") String username);
}
